procedure TJQGMap3Frm.RectangleClickEvent(Sender: TObject; AParams: TStringList);
begin
  IWCGJQGMap3.JQGMapV3Options.Rectangle.Options.FillColor:= '#FFAF9F';
  IWCGJQGMap3.JQGMapV3Options.Rectangle.Options.StrokeColor:= '#FF512F';
end;

with IWCGJQGMap3.JQGMapV3Options do
begin
  Map.Options.Zoom:= 12;
  Map.Options.Center.Latitude:= 40.36267630;
  Map.Options.Center.Longitude:= -8.453534200000002;
  Rectangle.Options.Bounds.N:= 40.36267630;
  Rectangle.Options.Bounds.E:= -8.423534200000002;
  Rectangle.Options.Bounds.S:= 40.39267630;
  Rectangle.Options.Bounds.W:= -8.483534200000002;
  Rectangle.Options.FillColor:= '#F4AFFF';
  Rectangle.Options.StrokeColor:= '#CB53DF';
  Rectangle.Options.Clickable:= True;
  Rectangle.Events.OnClick.OnEvent:= RectangleClickEvent;
end;
